Examples of ImmutableMarshalledValueByteStream


Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

    * @param hashCode The hashCode of the object when it was deserialized
    * @param marshaller The marshaller to use to deserialize the object
    */
   public MarshalledValue(byte[] bytes, int hashCode, StreamingMarshaller marshaller) {
      this.marshaller = marshaller;
      this.raw = new ImmutableMarshalledValueByteStream(bytes);
      this.cachedHashCode = hashCode;
      this.serialisedSize = bytes.length;
   }
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

   @Override
   public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
      serialisedSize = in.readInt();
      byte[] bytes = new byte[serialisedSize];
      in.readFully(bytes);
      raw = new ImmutableMarshalledValueByteStream(bytes);
      cachedHashCode = in.readInt();
      // If the marshalled value is being serialized via the JDK, it's not in
      // an environment where the cache marshaller can be injected, so the
      // only alternative available is really the generic JBoss Marshaller,
      // used in potentially non-cache environments, i.e. hot rod client.
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

      this.marshaller = marshaller;
   }

   private void init(byte[] raw, int cachedHashCode) {
      // for unmarshalling
      this.raw = new ImmutableMarshalledValueByteStream(raw);
      this.serialisedSize = raw.length;
      this.cachedHashCode = cachedHashCode;
   }
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

      this.marshaller = marshaller;
   }

   private void init(byte[] raw, int cachedHashCode) {
      // for unmarshalling
      this.raw = new ImmutableMarshalledValueByteStream(raw);
      this.serialisedSize = raw.length;
      this.cachedHashCode = cachedHashCode;
   }
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

      this.marshaller = marshaller;
   }

   private void init(byte[] raw, int cachedHashCode) {
      // for unmarshalling
      this.raw = new ImmutableMarshalledValueByteStream(raw);
      this.serialisedSize = raw.length;
      this.cachedHashCode = cachedHashCode;
   }
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

    * @param hashCode The hashCode of the object when it was deserialized
    * @param marshaller The marshaller to use to deserialize the object
    */
   public MarshalledValue(byte[] bytes, int hashCode, StreamingMarshaller marshaller) {
      this.marshaller = marshaller;
      this.raw = new ImmutableMarshalledValueByteStream(bytes);
      this.cachedHashCode = hashCode;
      this.serialisedSize = bytes.length;
   }
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

   @Override
   public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
      serialisedSize = in.readInt();
      byte[] bytes = new byte[serialisedSize];
      in.readFully(bytes);
      raw = new ImmutableMarshalledValueByteStream(bytes);
      cachedHashCode = in.readInt();
      // If the marshalled value is being serialized via the JDK, it's not in
      // an environment where the cache marshaller can be injected, so the
      // only alternative available is really the generic JBoss Marshaller,
      // used in potentially non-cache environments, i.e. hot rod client.
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

      // For JDK serialization
   }

   public MarshalledValue(byte[] bytes, int hashCode, StreamingMarshaller marshaller) {
      this.marshaller = marshaller;
      this.raw = new ImmutableMarshalledValueByteStream(bytes);
      this.cachedHashCode = hashCode;
      this.serialisedSize = bytes.length;
   }
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

   @Override
   public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
      serialisedSize = in.readInt();
      byte[] bytes = new byte[serialisedSize];
      in.readFully(bytes);
      raw = new ImmutableMarshalledValueByteStream(bytes);
      cachedHashCode = in.readInt();
      // If the marshalled value is being serialized via the JDK, it's not in
      // an environment where the cache marshaller can be injected, so the
      // only alternative available is really the generic JBoss Marshaller,
      // used in potentially non-cache environments, i.e. hot rod client.
View Full Code Here

Examples of org.infinispan.io.ImmutableMarshalledValueByteStream

      this.marshaller = marshaller;
   }

   private void init(byte[] raw, int cachedHashCode) {
      // for unmarshalling
      this.raw = new ImmutableMarshalledValueByteStream(raw);
      this.serialisedSize = raw.length;
      this.cachedHashCode = cachedHashCode;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.