Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.infinispan.client.hotrod.marshall;
 
A marshaller that uses Protocol Buffers.

Author(s):
anistor@redhat.com
Since:
6.0
   public ProtoStreamMarshaller() {
   }
   @Override
      return ;
   }

   
Obtains the org.infinispan.protostream.SerializationContext associated with the given remote cache manager.

Parameters:
remoteCacheManager the remote cache manager (must not be null)
Returns:
the associated org.infinispan.protostream.SerializationContext
Throws:
org.infinispan.client.hotrod.exceptions.HotRodClientException if the cache manager is not configured to use a ProtoStreamMarshaller
   public static SerializationContext getSerializationContext(RemoteCacheManager remoteCacheManager) {
      Marshaller marshaller = remoteCacheManager.getMarshaller();
      if (marshaller instanceof ProtoStreamMarshaller) {
         return ((ProtoStreamMarshallermarshaller).getSerializationContext();
      }
      throw new HotRodClientException("The cache manager must be configured with a ProtoStreamMarshaller");
   }
New to GrepCode? Check out our FAQ X