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>
- Author:
- Marek Potociar
-
-
Constructor Summary
Constructors Constructor Description SuspendedFiberStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
register(long timestamp, Fiber subject)
Creates a newsubject
registration.Fiber
register(String correlationId, Fiber subject)
Registers asubject
and maps it to a givencorrelationId
.void
resumeAllFibers(Throwable error)
void
resumeFiber(String correlationId, Packet response)
void
resumeFiber(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:TimestampedCollection
Registers asubject
and 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:
register
in classTimestampedCollection<String,Fiber>
- Parameters:
correlationId
- correlation identifier to be associated with a givensubject
subject
- a primary registration object- Returns:
- old
subject
associated with a givencorrelationId
ornull
if 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:TimestampedCollection
Creates a newsubject
registration. The newly created registration is timestamped using a value of thetimestamp
parameter which allows for later removal based on the age of registration usingTimestampedCollection.removeOldest()
method.- Overrides:
register
in classTimestampedCollection<String,Fiber>
- Parameters:
timestamp
- a timestamp to be used for the registrationsubject
- a primary registration subject- Returns:
true
if the registration was successfull,false
otherwise- 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)
-
-