org.infinispan.configuration.cache
Class StoreAsBinaryConfiguration

java.lang.Object
  extended by org.infinispan.configuration.cache.StoreAsBinaryConfiguration

public class StoreAsBinaryConfiguration
extends Object

Controls whether when stored in memory, keys and values are stored as references to their original objects, or in a serialized, binary format. There are benefits to both approaches, but often if used in a clustered mode, storing objects as binary means that the cost of serialization happens early on, and can be amortized. Further, deserialization costs are incurred lazily which improves throughput.

It is possible to control this on a fine-grained basis: you can choose to just store keys or values as binary, or both.

See Also:
StoreAsBinaryConfigurationBuilder

Method Summary
 boolean enabled()
          Enables storing both keys and values as binary.
 boolean equals(Object o)
           
 int hashCode()
           
 boolean storeKeysAsBinary()
          Enables storing keys as binary.
 boolean storeValuesAsBinary()
          Enables storing values as binary.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

enabled

public boolean enabled()
Enables storing both keys and values as binary.


storeKeysAsBinary

public boolean storeKeysAsBinary()
Enables storing keys as binary.


storeValuesAsBinary

public boolean storeValuesAsBinary()
Enables storing values as binary.


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.