Tabnine Logo
StreamingMarshaller.objectFromByteBuffer
Code IndexAdd Tabnine to your IDE (free)

How to use
objectFromByteBuffer
method
in
org.infinispan.marshall.StreamingMarshaller

Best Java code snippets using org.infinispan.marshall.StreamingMarshaller.objectFromByteBuffer (Showing top 4 results out of 315)

origin: org.infinispan/infinispan-cachestore-jdbm

@Override
public Object deserialize(byte[] buf) throws IOException {
  try {
    return marshaller.objectFromByteBuffer(buf);
  } catch (ClassNotFoundException e) {
    throw (IOException)new IOException().initCause(e);
  }
}
origin: org.infinispan/infinispan-cachestore-jdbm

private InternalCacheEntry unmarshall(Object o, Object key) throws IOException, ClassNotFoundException {
 if (o == null)
   return null;
 byte b[] = (byte[]) o;
 InternalCacheValue v = (InternalCacheValue) getMarshaller().objectFromByteBuffer(b);
 return v.toInternalCacheEntry(key);
}
origin: org.infinispan/infinispan-cachestore-bdbje

@Override
public InternalCacheEntry entryToObject(DatabaseEntry entry) {
 try {
   return (InternalCacheEntry) m.objectFromByteBuffer(entry.getData());
 } catch (IOException e) {
   throw new RuntimeExceptionWrapper(e);
 } catch (ClassNotFoundException e) {
   throw new RuntimeExceptionWrapper(e);
 }
}
origin: org.infinispan/infinispan-cachestore-jdbm

if (b == null)
 continue;
InternalCacheValue ice = (InternalCacheValue) getMarshaller().objectFromByteBuffer(b);
if (ice.isExpired(currentTimeMillis)) {
org.infinispan.marshallStreamingMarshallerobjectFromByteBuffer

Popular methods of StreamingMarshaller

  • objectToByteBuffer
  • finishObjectInput
    Finish using the given ObjectInput. After opening a ObjectInput and calling objectFromObjectStream()
  • objectFromObjectStream
    Unmarshalls an object from an java.io.ObjectInput
  • startObjectInput
    Create and open a new ObjectInput for the given input stream. This method should be used for opening
  • finishObjectOutput
    Finish using the given ObjectOutput. After opening a ObjectOutput and calling objectToObjectStream()
  • objectToObjectStream
    Marshalls an object to a given java.io.ObjectOutput
  • startObjectOutput

Popular in Java

  • Start an intent from android
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • JFrame (javax.swing)
  • Option (scala)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now