Code example for ObjectInput

Methods: readObject

0
      } 
 
      @Override 
      public RemoveOperation readObject(ObjectInput input) throws IOException, ClassNotFoundException {
         RemoveOperation<Object, Object> remove = new RemoveOperation<Object, Object>(); 
         remove.key = input.readObject();
         return remove; 
      } 
 
      @Override 
      public Integer getId() {
         return Ids.ATOMIC_REMOVE_OPERATION; 
      } 
 
      @Override 
      public Set<Class<? extends RemoveOperation>> getTypeClasses() {
         return Util.<Class<? extends RemoveOperation>>asSet(RemoveOperation.class);
      } 
   } 
}