com.hazelcast.nio.serialization
Interface Portable

All Known Subinterfaces:
PortableAdapter<T>, VersionedPortable
All Known Implementing Classes:
AbstractAlterRequest, AbstractAlterRequest, AbstractCacheRequest, AbstractCredentials, AbstractIsLockedRequest, AbstractLockRequest, AbstractMapAddEntryListenerRequest, AbstractReplicatedMapClientRequest, AbstractTxnMapRequest, AbstractUnlockRequest, AcquireRequest, AddAllRequest, AddAndGetRequest, AddEntryListenerRequest, AddListenerRequest, AddMembershipListenerRequest, AddMessageListenerRequest, AllPartitionsClientRequest, AlterAndGetRequest, AlterAndGetRequest, AlterRequest, AlterRequest, ApplyRequest, ApplyRequest, AtomicLongRequest, AuthenticationRequest, AvailableRequest, AwaitRequest, AwaitRequest, BaseClientRemoveListenerRequest, BaseTransactionRequest, BeforeAwaitRequest, CacheAddEntryListenerRequest, CacheClearRequest, CacheContainsKeyRequest, CacheCreateConfigRequest, CacheDestroyRequest, CacheEntryProcessorRequest, CacheGetAllRequest, CacheGetAndRemoveRequest, CacheGetAndReplaceRequest, CacheGetConfigRequest, CacheGetRequest, CacheIterateRequest, CacheListenerRegistrationRequest, CacheLoadAllRequest, CacheManagementConfigRequest, CachePutIfAbsentRequest, CachePutRequest, CacheRemoveEntryListenerRequest, CacheRemoveRequest, CacheReplaceRequest, CacheSizeRequest, CallableClientRequest, CancellationRequest, ClearRequest, ClearRequest, ClientCancellationRequest, ClientCreateRequest, ClientDestroyRequest, ClientJobProcessInformationRequest, ClientMapReduceRequest, ClientPingRequest, ClientPrincipal, ClientReplicatedMapAddEntryListenerRequest, ClientReplicatedMapClearRequest, ClientReplicatedMapContainsKeyRequest, ClientReplicatedMapContainsValueRequest, ClientReplicatedMapEntrySetRequest, ClientReplicatedMapGetRequest, ClientReplicatedMapIsEmptyRequest, ClientReplicatedMapKeySetRequest, ClientReplicatedMapPutAllRequest, ClientReplicatedMapPutTtlRequest, ClientReplicatedMapRemoveEntryListenerRequest, ClientReplicatedMapRemoveRequest, ClientReplicatedMapSizeRequest, ClientReplicatedMapValuesRequest, ClientRequest, CollectionAddAllRequest, CollectionAddListenerRequest, CollectionAddRequest, CollectionClearRequest, CollectionCompareAndRemoveRequest, CollectionContainsRequest, CollectionGetAllRequest, CollectionIsEmptyRequest, CollectionRemoveListenerRequest, CollectionRemoveRequest, CollectionRequest, CollectionSizeRequest, CommitTransactionRequest, CompareAndRemoveRequest, CompareAndSetRequest, CompareAndSetRequest, ContainsRequest, ContainsRequest, ContainsRequest, CountDownRequest, CountRequest, CreateTransactionRequest, DistributedObjectInfo, DistributedObjectListenerRequest, DrainRequest, DrainRequest, EntrySetRequest, GenericError, GetAllRequest, GetAndAddRequest, GetAndAlterRequest, GetAndAlterRequest, GetAndSetRequest, GetAndSetRequest, GetCountRequest, GetDistributedObjectsRequest, GetLockCountRequest, GetPartitionsRequest, GetRemainingLeaseRequest, GetRequest, InitRequest, InvocationClientRequest, IsEmptyRequest, IsLockedRequest, IsNullRequest, IsShutdownRequest, IteratorRequest, KeyBasedClientRequest, KeyBasedContainsRequest, KeySetRequest, ListAddAllRequest, ListAddRequest, ListGetRequest, ListIndexOfRequest, ListRemoveRequest, ListSetRequest, ListSubRequest, LockRequest, MapAddEntryListenerRequest, MapAddEntryListenerSqlRequest, MapAddIndexRequest, MapAddInterceptorRequest, MapAddNearCacheEntryListenerRequest, MapClearRequest, MapContainsKeyRequest, MapContainsValueRequest, MapDeleteRequest, MapEntrySetRequest, MapEvictAllRequest, MapEvictRequest, MapExecuteOnAllKeysRequest, MapExecuteOnKeyRequest, MapExecuteOnKeysRequest, MapExecuteWithPredicateRequest, MapFlushRequest, MapGetAllRequest, MapGetEntryViewRequest, MapGetRequest, MapIsEmptyRequest, MapIsLockedRequest, MapKeySetRequest, MapLoadAllKeysRequest, MapLoadGivenKeysRequest, MapLockRequest, MapPutAllRequest, MapPutIfAbsentRequest, MapPutRequest, MapPutTransientRequest, MapQueryRequest, MapRemoveEntryListenerRequest, MapRemoveIfSameRequest, MapRemoveInterceptorRequest, MapRemoveRequest, MapReplaceIfSameRequest, MapReplaceRequest, MapSetRequest, MapSizeRequest, MapSQLQueryRequest, MapTryPutRequest, MapTryRemoveRequest, MapUnlockRequest, MapValuesRequest, ModifyRequest, MultiMapAllPartitionRequest, MultiMapIsLockedRequest, MultiMapKeyBasedRequest, MultiMapLockRequest, MultiMapRequest, MultiMapUnlockRequest, MultiPartitionClientRequest, MultiTargetClientRequest, OfferRequest, PartitionCallableRequest, PartitionClientRequest, PeekRequest, PollRequest, PortableCollection, PortableDistributedObjectEvent, PortableEntryEvent, PortableEntrySetResponse, PortableItemEvent, PortableMessage, PrepareTransactionRequest, PublishRequest, PutRequest, QueueRequest, ReadRequest, ReadRequest, RecoverAllTransactionsRequest, RecoverTransactionRequest, ReduceRequest, ReleaseRequest, RemainingCapacityRequest, RemoveAllListeners, RemoveAllRequest, RemoveDistributedObjectListenerRequest, RemoveEntryListenerRequest, RemoveListenerRequest, RemoveMessageListenerRequest, RemoveRequest, RemoveRequest, ReplicatedMapEntrySet, ReplicatedMapGetResponse, ReplicatedMapKeySet, ReplicatedMapPortableEntryEvent, ReplicatedMapValueCollection, RollbackTransactionRequest, SemaphoreRequest, SetCountRequest, SetRequest, SetRequest, ShutdownRequest, SignalRequest, SizeRequest, SizeRequest, TargetCallableRequest, TargetClientRequest, TransferableJobProcessInformation, TxnCollectionRequest, TxnListAddRequest, TxnListRemoveRequest, TxnListSizeRequest, TxnMapRequest, TxnMapRequestWithSQLQuery, TxnMultiMapGetRequest, TxnMultiMapPutRequest, TxnMultiMapRemoveAllRequest, TxnMultiMapRemoveRequest, TxnMultiMapRequest, TxnMultiMapSizeRequest, TxnMultiMapValueCountRequest, TxnOfferRequest, TxnPeekRequest, TxnPollRequest, TxnSetAddRequest, TxnSetRemoveRequest, TxnSetSizeRequest, TxnSizeRequest, UnlockRequest, UsernamePasswordCredentials, ValuesRequest

public interface Portable

Portable provides an alternative serialization method. Instead of relying on reflection, each Portable is created by a registered PortableFactory.

Portable serialization that have the following advantages:

See Also:
PortableFactory, PortableWriter, PortableReader, ClassDefinition, DataSerializable, IdentifiedDataSerializable, SerializationConfig

Method Summary
 int getClassId()
          Returns class identifier for this portable class.
 int getFactoryId()
          Returns PortableFactory id for this portable class
 void readPortable(PortableReader reader)
          Read portable fields using PortableReader
 void writePortable(PortableWriter writer)
          Serialize this portable object using PortableWriter
 

Method Detail

getFactoryId

int getFactoryId()
Returns PortableFactory id for this portable class

Returns:
factory id

getClassId

int getClassId()
Returns class identifier for this portable class. Class id should be unique per PortableFactory.

Returns:
class id

writePortable

void writePortable(PortableWriter writer)
                   throws IOException
Serialize this portable object using PortableWriter

Parameters:
writer - PortableWriter
Throws:
IOException

readPortable

void readPortable(PortableReader reader)
                  throws IOException
Read portable fields using PortableReader

Parameters:
reader - PortableReader
Throws:
IOException


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.