Top Description Fields Constructors Methods
net.sf.ehcache.transaction

public Class TransactionIDSerializedForm

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
net.sf.ehcache.CacheManager, java.io.Serializable

A replacement serialized form for transaction IDs. It can be used by transaction ID factories to create IDs that serialize to this form (using writeReplace()) if they don't want or cannot provide directly serializable IDs.

During deserialization, objects of this class will be replaced by the result of the CacheManager.restoreTransactionID() call.

Author
Ludovic Orban

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final long
private final int
private final String

Constructor Summary

AccessConstructor and Description
public
TransactionIDSerializedForm(String
the name of the cache manager which contains the factory that created the original TransactionID
cacheManagerName
,
String
the TransactionID's cluster UUID
clusterUUID
,
String ownerID, long
the TransactionID's creation time
creationTime
,
int
the TransactionID's internal ID
id
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the cache manager name
getCacheManagerName
()

Get the name of the cache manager which contains the factory that created the original TransactionID

public String

Returns:

the original TransactionID's cluster UUID
getClusterUUID
()

Get the original TransactionID's cluster UUID

public long

Returns:

the original TransactionID's creation time
getCreationTime
()

Get the original TransactionID's creation time

public int

Returns:

the original TransactionID's internal ID
getId
()

Get the original TransactionID's internal ID

public String

Returns:

the original TransactionID's owner id
getOwnerID
()

Get the original TransactionID's owner id

private Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cacheManagerNameback to summary
private final String cacheManagerName
clusterUUIDback to summary
private final String clusterUUID
creationTimeback to summary
private final long creationTime
idback to summary
private final int id
ownerIDback to summary
private final String ownerID

Constructor Detail

TransactionIDSerializedFormback to summary
public TransactionIDSerializedForm(String cacheManagerName, String clusterUUID, String ownerID, long creationTime, int id)

Constructor

Parameters
cacheManagerName:String

the name of the cache manager which contains the factory that created the original TransactionID

clusterUUID:String

the TransactionID's cluster UUID

creationTime:long

the TransactionID's creation time

id:int

the TransactionID's internal ID

Method Detail

getCacheManagerNameback to summary
public String getCacheManagerName()

Get the name of the cache manager which contains the factory that created the original TransactionID

Returns:String

the cache manager name

getClusterUUIDback to summary
public String getClusterUUID()

Get the original TransactionID's cluster UUID

Returns:String

the original TransactionID's cluster UUID

getCreationTimeback to summary
public long getCreationTime()

Get the original TransactionID's creation time

Returns:long

the original TransactionID's creation time

getIdback to summary
public int getId()

Get the original TransactionID's internal ID

Returns:int

the original TransactionID's internal ID

getOwnerIDback to summary
public String getOwnerID()

Get the original TransactionID's owner id

Returns:String

the original TransactionID's owner id

readResolveback to summary
private Object readResolve()