Interface PortableObject

All Known Subinterfaces:
EvolvableObject, EvolvablePortableObject, PortablePredicate<T>
All Known Implementing Classes:
AbstractAggregator, AbstractBigDecimalAggregator, AbstractCoherenceBasedCompleteConfiguration, AbstractCollector, AbstractComparableAggregator, AbstractCompositeExtractor, AbstractDoubleAggregator, AbstractEvolvableProcessor, AbstractKeyBasedMap.DeferredCacheEvent, AbstractLongAggregator, AbstractPofPath, AbstractPriorityTask, AbstractScript, AllFilter, AlwaysFilter, AndFilter, AnthropicChatModelConfig, AnthropicStreamingChatModelConfig, AnyFilter, ArrayFilter, BaseProxyResponse, BetweenFilter, BigDecimalAverage, BigDecimalMax, BigDecimalMin, BigDecimalSum, BinaryQuantIndexConfig, BoolValueResponse, CacheEvent, CacheEventFilter, ChainedComparator, ChainedExtractor, ChainedFragmentExtractor, ChainedParameterResolver, ChannelUriResponse, CloseExecutor, ClusteredAssignment, ClusteredAssignment.AssignmentProcessor, ClusteredAssignment.SetStateProcessor, ClusteredExecutorInfo, ClusteredExecutorInfo.SetStateProcessor, ClusteredExecutorInfo.TouchProcessor, ClusteredExecutorInfo.UpdateInfoProcessor, ClusteredProperties, ClusteredProperties.PropertyKey, ClusteredProperties.PropertyValue, ClusteredProperties.SetPropertyValueProcessor, ClusteredTaskManager, ClusteredTaskManager.CancellationProcessor, ClusteredTaskManager.ChainedProcessor, ClusteredTaskManager.NotifyExecutionStrategyProcessor, ClusteredTaskManager.OptimizeExecutionPlanProcessor, ClusteredTaskManager.RetainProcessor, ClusteredTaskManager.SetActionProcessor, ClusteredTaskManager.UpdateCollectedResultProcessor, ClusteredTaskManager.UpdateContributedResultProcessor, ClusteredTaskManager.UpdateExecutionPlanProcessor, ClusterMember, CoherenceEntryProcessorResult, CollectionExtractor, CollectionOfInt32Response, CollectionOfStringValuesResponse, ComparableMax, ComparableMin, ComparisonFilter, ComparisonValueExtractor, CompositeAggregator, CompositeAggregator.Parallel, CompositeKey, CompositeProcessor, CompositeUpdater, ConditionalCollector, ConditionalExtractor, ConditionalProcessor, ConditionalPut, ConditionalPutAll, ConditionalRemove, ConfigKey, ConnectionException, ContainsAllFilter, ContainsAnyFilter, ContainsFilter, ContextJCacheStatistics, ConverterCollections.ConverterCacheEvent, ConverterCollections.ConverterMapEvent, Count, CronTask, Debugging, DefaultVersionedPartitions, Description, DeserializationAccelerator, DistinctValues, DoubleAverage, DoubleMax, DoubleMin, DoubleSum, EmptyResponse, EntryComparator, EntryExtractor, EqualsFilter, ExtractorComparator, ExtractorEventTransformer, ExtractorFilter, ExtractorProcessor, FilterTrigger, Fragment, FragmentExtractor, GreaterEqualsFilter, GreaterFilter, GroupAggregator, GroupAggregator.Parallel, GrpcNamedTopicFactory.GrpcCommitRequest, GrpcNamedTopicFactory.GrpcCommitResponse, GrpcNamedTopicFactory.GrpcDestroySubscriberGroupRequest, GrpcNamedTopicFactory.GrpcEnsureSubscriberGroupRequest, GrpcNamedTopicFactory.GrpcEnsureSubscriptionRequest, GrpcNamedTopicFactory.GrpcGetHeadsRequest, GrpcNamedTopicFactory.GrpcGetLastCommitedRequest, GrpcNamedTopicFactory.GrpcGetOwnedChannelsRequest, GrpcNamedTopicFactory.GrpcGetRemainingMessagesRequest, GrpcNamedTopicFactory.GrpcGetTailsRequest, GrpcNamedTopicFactory.GrpcHeartbeatRequest, GrpcNamedTopicFactory.GrpcInitializeSubscriptionRequest, GrpcNamedTopicFactory.GrpcInitializeSubscriptionResponse, GrpcNamedTopicFactory.GrpcIsCommitedRequest, GrpcNamedTopicFactory.GrpcPeekRequest, GrpcNamedTopicFactory.GrpcPeekResponse, GrpcNamedTopicFactory.GrpcPublisherEvent, GrpcNamedTopicFactory.GrpcPublishRequest, GrpcNamedTopicFactory.GrpcPublishResponse, GrpcNamedTopicFactory.GrpcReceiveRequest, GrpcNamedTopicFactory.GrpcReceiveResponse, GrpcNamedTopicFactory.GrpcSeekRequest, GrpcNamedTopicFactory.GrpcSimpleReceiveRequest, GrpcNamedTopicFactory.GrpcSimpleReceiveResponse, GrpcNamedTopicFactory.SeekResponse, com.tangosol.coherence.component.net.extend.message.response.GrpcResponse, GrpcTopicServiceFactory.GrpcChannelCountRequest, GrpcTopicServiceFactory.GrpcDestroyPublisherRequest, GrpcTopicServiceFactory.GrpcDestroySubscriberRequest, GrpcTopicServiceFactory.GrpcDestroyTopicRequest, GrpcTopicServiceFactory.GrpcEnsureChannelCountRequest, GrpcTopicServiceFactory.GrpcEnsurePublisherRequest, GrpcTopicServiceFactory.GrpcEnsurePublisherResponse, GrpcTopicServiceFactory.GrpcEnsureSimpleSubscriberRequest, GrpcTopicServiceFactory.GrpcEnsureSubscriberRequest, GrpcTopicServiceFactory.GrpcEnsureSubscriberResponse, GrpcTopicServiceFactory.GrpcEnsureTopicRequest, GrpcTopicServiceFactory.GrpcGetSubscriberGroupsRequest, HnswIndexConfig, IdentityExtractor, IndexConfig, InFilter, InKeySetFilter, InstanceBuilder, Int32ValueResponse, InverseComparator, IsNotNullFilter, IsNullFilter, JCacheEntryMetaInf, JCacheIdentifier, KeyAssociatedFilter, KeyExtractor, LessEqualsFilter, LessFilter, LikeFilter, LimitFilter, LiteralExpression, LocalCacheAsynchronousMapListener.NonSyntheticEntryFilter, LocalCacheConfiguration, LocalOnlyProcessor, LockOwner, LongMax, LongMin, LongSum, MapEvent, MapEventFilter, MapEventTransformerFilter, MapListenerSupport.FilterEvent, MapOfChannelAndPositionResponse, Member, com.tangosol.coherence.component.net.extend.Message, MethodInvocationProcessor, MultiExtractor, MutableExecutionPlan, Name, NamedTopicEvent, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.CommitRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.DestroySubscriberGroupRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.EnsureSubscriberGroupRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.EnsureSubscriptionRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.GetHeadsRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.GetLastCommitedRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.GetOwnedChannelsRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.GetRemainingMessagesRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.GetTailsRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.HeartbeatRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.InitializeSubscriptionRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.IsCommitedRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.PeekRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.PublisherEvent, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.PublishRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.ReceiveRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.SeekRequest, com.tangosol.coherence.component.net.extend.messageFactory.NamedTopicFactory.SimpleReceiveRequest, com.tangosol.coherence.component.net.extend.message.request.NamedTopicRequest, NeverFilter, NonSyntheticEntryFilter, NotEqualsFilter, NotFilter, NullFilter, NullImplementation.NullEntryProcessor, NullImplementation.NullMap, NullImplementation.NullObservableMap, NullImplementation.NullSet, NullImplementation.NullValueExtractor, NullParameterResolver, NumberIncrementor, NumberMultiplier, OptionsByType, OptionsByType.EmptyOptionsByType, OrFilter, OverflowMap.HistoricCacheEvent, Ownership, Parameter, ParameterMacroExpression, PartitionedCacheAsynchronousMapListener.NonSyntheticEntryFilter, PartitionedCacheConfiguration, PartitionedCacheSyntheticDeleteMapListener.JCacheExpiryEntryFilter, PartitionedFilter, PartitionedJCacheStatistics.CacheStatisticsExtractor, PartitionedJCacheStatistics.PartitionedCacheStatisticsAggregator, PartitionedJCacheStatistics.PartitionedCacheStatisticsClear, PartitionSet, PassThroughFilterAdapter, PermissionInfo, PermitAcquirer, PofExtractor, PofUpdater, PortableAbstractProcessor, PortableException, PredicateFilter, Predicates.AlwaysPredicate, Predicates.EqualToPredicate, Predicates.IsValuePredicate, Predicates.NegatePredicate, Predicates.NeverPredicate, Predicates.NullValuePredicate, Predicates.OptionPredicate, Predicates.RolePredicate, Predicates.ThrowablePredicate, PreloadRequest, PresentFilter, PriorityAggregator, PriorityFilter, PriorityProcessor, PropertyManipulator, PropertyProcessor, PropertySet, PropertySpec, Publisher.FailOnFull, Publisher.OrderBy, Publisher.OrderById, Publisher.OrderByNone, Publisher.OrderByRoundRobin, Publisher.OrderByThread, Publisher.OrderByValue, QueryRecorder, RecoveringTask, ReducerAggregator, ReflectionExtractor, ReflectionUpdater, RegexFilter, RemoteCacheConfiguration, com.tangosol.coherence.component.net.extend.message.Request, RequestIncompleteException, RequestPolicyException, RequestTimeoutException, ResolvableParameterList, com.tangosol.coherence.component.net.extend.message.Response, Result, Role, SafeComparator, SamplingEventTransformer, ScopedParameterResolver, ScriptAggregator, ScriptFilter, ScriptProcessor, ScriptValueExtractor, SemiLiteEventTransformer, SimpleDocument, SimpleElement, SimpleHolder, SimpleIndexConfig, SimpleParameterList, SimplePartitionKey, SimplePofPath, SimpleQueryRecord, SimpleQueryRecord.PartialResult, SimpleQueryRecord.PartialResult.AbstractRecordableStep, SimpleQueryRecord.PartialResult.ExplainStep, SimpleQueryRecord.PartialResult.IndexLookupRecord, SimpleQueryRecord.PartialResult.Step, SimpleQueryRecord.PartialResult.TraceStep, SimpleValue, StandardExecutionStrategy, StaticContent, StaticFactoryInstanceBuilder, Storage, StoreConfig, StringValueResponse, Subscriber.CommitResult, Subscriber.CompleteOnEmpty, Subscriber.Convert, Subscriber.Filtered, Subscriber.Name, SuspectConnectionException, TaskCollectors.CountCollector, TaskCollectors.FirstOfCollector, TaskCollectors.LastOfCollector, TaskCollectors.ListOfCollector, TaskCollectors.SetOfCollector, Timer, com.tangosol.coherence.component.net.extend.message.request.TopicPublisherRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.BaseEnsureSubscriberRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.ChannelCountRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.DestroyPublisherRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.DestroySubscriberRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.DestroyTopicRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.EnsureChannelCountRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.EnsurePublisherRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.EnsureSimpleSubscriberRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.EnsureSubscriberRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.EnsureTopicRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.GetSubscriberGroupsRequest, com.tangosol.coherence.component.net.extend.messageFactory.TopicServiceFactory.NewChannelRequest, com.tangosol.coherence.component.net.extend.message.request.TopicServiceRequest, com.tangosol.coherence.component.net.extend.message.request.TopicSubscriberRequest, TopNAggregator, TopNAggregator.PartialResult, TouchProcessor, UID, UniversalExtractor, UniversalManipulator, UniversalUpdater, UpdaterProcessor, UUID, ValueChangeEventFilter, ValueMacroExpression, ValueTask, VersionedOwnership, VersionedPut, VersionedPutAll, WorkManager.AbstractWork, WorkManager.CollectMembershipInfo, WorkManager.ReleaseWork, WorkManager.RequestStatus, WorkManager.ScheduleWork, WorkManager.SendFeedback, WorkManager.WorkStatus, XorFilter

public interface PortableObject
The PortableObject interface is implemented by Java classes that can self- serialize and deserialize their state to and from a POF data stream.

The readExternal(com.tangosol.io.pof.PofReader) and writeExternal(com.tangosol.io.pof.PofWriter) methods of the PortableObject interface are implemented by a class to give the class complete control its own POF serialization and deserialization.

Since:
Coherence 3.2
Author:
cp/jh 2006.07.13
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Restore the contents of a user type instance by reading its state using the specified PofReader object.
    void
    Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
  • Method Details

    • readExternal

      void readExternal(PofReader in) throws IOException
      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

      void writeExternal(PofWriter out) throws IOException
      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