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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SuspendedFiberStorage
public SuspendedFiberStorage()
register
public Fiber register(String correlationId,
Fiber subject)
- Description copied from class:
TimestampedCollection
- Registers a
subject and maps it to a given correlationId.
The newly created registration is timestamped which allows for later removal
based on the age of registration using TimestampedCollection.removeOldest() method.
- Overrides:
register in class TimestampedCollection<String,Fiber>
- Parameters:
correlationId - correlation identifier to be associated with a given subjectsubject - a primary registration object
- Returns:
- old
subject associated with a given correlationId
or null if there's no such subject - See Also:
TimestampedCollection.remove(java.lang.Object),
TimestampedCollection.removeOldest()
register
public boolean register(long timestamp,
Fiber subject)
- Description copied from class:
TimestampedCollection
- Creates a new
subject registration. The newly created registration
is timestamped using a value of the timestamp parameter which allows
for later removal based on the age of registration using TimestampedCollection.removeOldest()
method.
- Overrides:
register in class TimestampedCollection<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)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.