java.lang.Object
com.sun.xml.ws.rx.util.TimestampedCollection<String,com.sun.xml.ws.api.pipe.Fiber>
com.sun.xml.ws.rx.util.SuspendedFiberStorage
public class SuspendedFiberStorage
extends TimestampedCollection<String,com.sun.xml.ws.api.pipe.Fiber>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanregister(long timestamp, com.sun.xml.ws.api.pipe.Fiber subject) Creates a newsubjectregistration.com.sun.xml.ws.api.pipe.FiberRegisters asubjectand maps it to a givencorrelationId.voidresumeAllFibers(Throwable error) voidresumeFiber(String correlationId, com.sun.xml.ws.api.message.Packet response) voidresumeFiber(String correlationId, Throwable error) Methods inherited from class com.sun.xml.ws.rx.util.TimestampedCollection
getOldestRegistrationTimestamp, isEmpty, newInstance, register, remove, removeAll, removeOldest, size
-
Constructor Details
-
SuspendedFiberStorage
public SuspendedFiberStorage()Default constructor.
-
-
Method Details
-
register
public com.sun.xml.ws.api.pipe.Fiber register(String correlationId, com.sun.xml.ws.api.pipe.Fiber subject) Description copied from class:TimestampedCollectionRegisters asubjectand maps it to a givencorrelationId. The newly created registration is timestamped which allows for later removal based on the age of registration usingTimestampedCollection.removeOldest()method.- Overrides:
registerin classTimestampedCollection<String,com.sun.xml.ws.api.pipe.Fiber> - Parameters:
correlationId- correlation identifier to be associated with a givensubjectsubject- a primary registration object- Returns:
- old
subjectassociated with a givencorrelationIdornullif there's no suchsubject - See Also:
-
register
public boolean register(long timestamp, com.sun.xml.ws.api.pipe.Fiber subject) Description copied from class:TimestampedCollectionCreates a newsubjectregistration. The newly created registration is timestamped using a value of thetimestampparameter which allows for later removal based on the age of registration usingTimestampedCollection.removeOldest()method.- Overrides:
registerin classTimestampedCollection<String,com.sun.xml.ws.api.pipe.Fiber> - Parameters:
timestamp- a timestamp to be used for the registrationsubject- a primary registration subject- Returns:
trueif the registration was successfull,falseotherwise- See Also:
-
resumeFiber
public void resumeFiber(String correlationId, com.sun.xml.ws.api.message.Packet response) throws ResumeFiberException - Throws:
ResumeFiberException
-
resumeFiber
- Throws:
ResumeFiberException
-
resumeAllFibers
-