Search in sources :

Example 1 with IracPutKeyCommand

use of org.infinispan.commands.irac.IracPutKeyCommand in project infinispan by infinispan.

the class CommandsFactoryImpl method buildIracPutKeyCommand.

@Override
public <K, V> IracPutKeyCommand buildIracPutKeyCommand(InternalCacheEntry<K, V> entry) {
    PrivateMetadata internalMetadata = entry.getInternalMetadata();
    assert internalMetadata != null : "[IRAC] Metadata to send to remote site is null! key=" + entry.getKey();
    IracMetadata iracMetadata = internalMetadata.iracMetadata();
    return new IracPutKeyCommand(cacheName, entry.getKey(), entry.getValue(), entry.getMetadata(), iracMetadata);
}
Also used : IracPutKeyCommand(org.infinispan.commands.irac.IracPutKeyCommand) IracMetadata(org.infinispan.metadata.impl.IracMetadata) PrivateMetadata(org.infinispan.metadata.impl.PrivateMetadata)

Aggregations

IracPutKeyCommand (org.infinispan.commands.irac.IracPutKeyCommand)1 IracMetadata (org.infinispan.metadata.impl.IracMetadata)1 PrivateMetadata (org.infinispan.metadata.impl.PrivateMetadata)1