org.glassfish.ha.store.api
Interface Storeable

All Superinterfaces:
Serializable
All Known Implementing Classes:
SimpleMetadata

public interface Storeable
extends Serializable

A Storeable is an interface that must be implemented by objects that are to be presisted in the backing store.

Author:
Mahesh.Kannan@Sun.Com

Method Summary
 String[] _storeable_getAttributeNames()
          Providers can cache this
 boolean[] _storeable_getDirtyStatus()
          Providers can cache this
 long _storeable_getLastAccessTime()
           
 long _storeable_getMaxIdleTime()
           
 long _storeable_getVersion()
          Get the version of this entry.
 void _storeable_readState(InputStream is)
           
 void _storeable_setLastAccessTime(long version)
           
 void _storeable_setMaxIdleTime(long version)
           
 void _storeable_setVersion(long version)
           
 void _storeable_writeState(OutputStream os)
           
 

Method Detail

_storeable_getVersion

long _storeable_getVersion()
Get the version of this entry. -1 means that this entry has no version

Returns:
The version or null if this entry has no version

_storeable_setVersion

void _storeable_setVersion(long version)

_storeable_getLastAccessTime

long _storeable_getLastAccessTime()

_storeable_setLastAccessTime

void _storeable_setLastAccessTime(long version)

_storeable_getMaxIdleTime

long _storeable_getMaxIdleTime()

_storeable_setMaxIdleTime

void _storeable_setMaxIdleTime(long version)

_storeable_getAttributeNames

String[] _storeable_getAttributeNames()
Providers can cache this

Returns:
an array of attribute names

_storeable_getDirtyStatus

boolean[] _storeable_getDirtyStatus()
Providers can cache this

Returns:
A boolean array each representing the dirty status of the attribute whose name can be found at the same index in the array returned by _getAttributeNames()

_storeable_writeState

void _storeable_writeState(OutputStream os)
                           throws IOException
Throws:
IOException

_storeable_readState

void _storeable_readState(InputStream is)
                          throws IOException
Throws:
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.