com.sun.xml.ws.rx.util
Class SuspendedFiberStorage

java.lang.Object
  extended by com.sun.xml.ws.rx.util.TimestampedCollection<String,Fiber>
      extended by com.sun.xml.ws.rx.util.SuspendedFiberStorage

public class SuspendedFiberStorage
extends TimestampedCollection<String,Fiber>

Author:
Marek Potociar

Constructor Summary
SuspendedFiberStorage()
           
 
Method Summary
 boolean register(long timestamp, Fiber subject)
          Creates a new subject registration.
 Fiber register(String correlationId, Fiber subject)
          Registers a subject and maps it to a given correlationId.
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SuspendedFiberStorage

public SuspendedFiberStorage()
Method Detail

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 subject
subject - 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 registration
subject - 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.