Package com.sun.xml.ws.rx.util
Class SuspendedFiberStorage
- java.lang.Object
-
- com.sun.xml.ws.rx.util.TimestampedCollection<String,Fiber>
-
- com.sun.xml.ws.rx.util.SuspendedFiberStorage
-
public class SuspendedFiberStorage extends TimestampedCollection<String,Fiber>
-
-
Constructor Summary
Constructors Constructor Description SuspendedFiberStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanregister(long timestamp, Fiber subject)Creates a newsubjectregistration.Fiberregister(String correlationId, Fiber subject)Registers asubjectand maps it to a givencorrelationId.voidresumeAllFibers(Throwable error)voidresumeFiber(String correlationId, 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
-
-
-
-
Method Detail
-
register
public Fiber register(String correlationId, 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,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:
TimestampedCollection.remove(java.lang.Object),TimestampedCollection.removeOldest()
-
register
public boolean register(long timestamp, 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,Fiber>- Parameters:
timestamp- a timestamp to be used for the registrationsubject- a primary registration subject- Returns:
trueif the registration was successfull,falseotherwise- See Also:
TimestampedCollection.removeOldest()
-
resumeFiber
public void resumeFiber(String correlationId, Packet response) throws ResumeFiberException
- Throws:
ResumeFiberException
-
resumeFiber
public void resumeFiber(String correlationId, Throwable error) throws ResumeFiberException
- Throws:
ResumeFiberException
-
resumeAllFibers
public void resumeAllFibers(Throwable error)
-
-