public class PersistentEntityKeyExternalizer extends Object implements org.infinispan.commons.marshall.AdvancedExternalizer<PersistentEntityKey>
EntityKey instances. Implicitly used by
InfinispanDialect which stores keys as is in the Infinispan data store.
This externalizer is automatically registered with the cache manager when starting the
InfinispanEmbeddedDatastoreProvider, so it's not required to configure the externalizer in the Infinispan
configuration file.
| Modifier and Type | Field and Description |
|---|---|
static PersistentEntityKeyExternalizer |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getId() |
Set<Class<? extends PersistentEntityKey>> |
getTypeClasses() |
PersistentEntityKey |
readObject(ObjectInput input) |
void |
writeObject(ObjectOutput output,
PersistentEntityKey key) |
public static final PersistentEntityKeyExternalizer INSTANCE
public void writeObject(ObjectOutput output, PersistentEntityKey key) throws IOException
writeObject in interface org.infinispan.commons.marshall.Externalizer<PersistentEntityKey>IOExceptionpublic PersistentEntityKey readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface org.infinispan.commons.marshall.Externalizer<PersistentEntityKey>IOExceptionClassNotFoundExceptionpublic Set<Class<? extends PersistentEntityKey>> getTypeClasses()
getTypeClasses in interface org.infinispan.commons.marshall.AdvancedExternalizer<PersistentEntityKey>public Integer getId()
getId in interface org.infinispan.commons.marshall.AdvancedExternalizer<PersistentEntityKey>Copyright © 2010–2017 Hibernate. All rights reserved.