Class SessionKeyMarshaller<K extends org.wildfly.clustering.cache.Key<String>>

java.lang.Object
org.wildfly.clustering.session.cache.SessionKeyMarshaller<K>
Type Parameters:
K - the cache key type
All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<K>, org.infinispan.protostream.ProtobufTagMarshaller<K>, org.wildfly.clustering.marshalling.protostream.Marshallable<K>, org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller<K>, org.wildfly.clustering.marshalling.protostream.Readable<K>, org.wildfly.clustering.marshalling.protostream.Writable<K>

public class SessionKeyMarshaller<K extends org.wildfly.clustering.cache.Key<String>> extends Object implements org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller<K>
Scalar marshaller for a session identifier.
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.infinispan.protostream.ProtobufTagMarshaller

    org.infinispan.protostream.ProtobufTagMarshaller.OperationContext, org.infinispan.protostream.ProtobufTagMarshaller.ReadContext, org.infinispan.protostream.ProtobufTagMarshaller.WriteContext
  • Field Summary

    Fields inherited from interface org.infinispan.protostream.BaseMarshaller

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a session key marshaller using the specified factory
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends K>
     
    readFrom(org.wildfly.clustering.marshalling.protostream.ProtoStreamReader reader)
     
    void
    writeTo(org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter writer, K key)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.infinispan.protostream.BaseMarshaller

    getSubClassNames

    Methods inherited from interface org.wildfly.clustering.marshalling.protostream.Marshallable

    size

    Methods inherited from interface org.wildfly.clustering.marshalling.protostream.ProtoStreamMarshaller

    getTypeName, read, wrap, wrap, write
  • Constructor Details

    • SessionKeyMarshaller

      public SessionKeyMarshaller(Function<String,K> factory)
      Creates a session key marshaller using the specified factory
      Parameters:
      factory - a session key factory
  • Method Details

    • readFrom

      public K readFrom(org.wildfly.clustering.marshalling.protostream.ProtoStreamReader reader) throws IOException
      Specified by:
      readFrom in interface org.wildfly.clustering.marshalling.protostream.Readable<K extends org.wildfly.clustering.cache.Key<String>>
      Throws:
      IOException
    • writeTo

      public void writeTo(org.wildfly.clustering.marshalling.protostream.ProtoStreamWriter writer, K key) throws IOException
      Specified by:
      writeTo in interface org.wildfly.clustering.marshalling.protostream.Writable<K extends org.wildfly.clustering.cache.Key<String>>
      Throws:
      IOException
    • getJavaClass

      public Class<? extends K> getJavaClass()
      Specified by:
      getJavaClass in interface org.infinispan.protostream.BaseMarshaller<K extends org.wildfly.clustering.cache.Key<String>>
      Specified by:
      getJavaClass in interface org.wildfly.clustering.marshalling.protostream.Marshallable<K extends org.wildfly.clustering.cache.Key<String>>