Package com.tangosol.net.topic
Class Publisher.OrderById<V>
java.lang.Object
com.tangosol.net.topic.Publisher.OrderBy<V>
com.tangosol.net.topic.Publisher.OrderById<V>
- Type Parameters:
V
- the value type
- All Implemented Interfaces:
ExternalizableLite
,PortableObject
,Publisher.Option<V>
,Serializable
Publisher.OrderBy
option ensures ordering of sent values
across
all threads which share the same orderId
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getOrderId
(V value) Return unit-of-order id.void
Restore the contents of a user type instance by reading its state using the specified PofReader object.void
Restore the contents of this object by loading the object's state from the passed DataInput object.toString()
void
writeExternal
(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.void
writeExternal
(DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object.Methods inherited from class com.tangosol.net.topic.Publisher.OrderBy
id, none, roundRobin, thread, value, value
-
Constructor Details
-
OrderById
public OrderById() -
OrderById
protected OrderById(int nOrderId)
-
-
Method Details
-
getOrderId
Description copied from class:Publisher.OrderBy
Return unit-of-order id.- Specified by:
getOrderId
in classPublisher.OrderBy<V>
- Returns:
- the unit-of-order id
-
readExternal
Description copied from interface:ExternalizableLite
Restore the contents of this object by loading the object's state from the passed DataInput object.- Parameters:
in
- the DataInput stream to read data from in order to restore the state of this object- Throws:
IOException
- if an I/O exception occurs
-
writeExternal
Description copied from interface:ExternalizableLite
Save the contents of this object by storing the object's state into the passed DataOutput object.- Parameters:
out
- the DataOutput stream to write the state of this object to- Throws:
IOException
- if an I/O exception occurs
-
readExternal
Description copied from interface:PortableObject
Restore the contents of a user type instance by reading its state using the specified PofReader object.- Parameters:
in
- the PofReader from which to read the object's state- Throws:
IOException
- if an I/O error occurs
-
writeExternal
Description copied from interface:PortableObject
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- Parameters:
out
- the PofWriter to which to write the object's state- Throws:
IOException
- if an I/O error occurs
-
toString
-