类 IDLProxyObject

java.lang.Object
com.baidu.bjf.remoting.protobuf.IDLProxyObject

public class IDLProxyObject extends Object
IDL parsed proxy object.
从以下版本开始:
1.0.2
作者:
xiemalin
  • 构造器详细资料

    • IDLProxyObject

      public IDLProxyObject(Codec codec, Object target, Class<?> cls)
      default construtor to set Codec target.
      参数:
      codec - the codec
      target - the target
      cls - the cls
  • 方法详细资料

    • isCached

      public boolean isCached()
      Checks if is cached.
      返回:
      true, if is cached
    • setCached

      public void setCached(boolean cached)
      Sets the cached.
      参数:
      cached - the new cached
    • newInstnace

      public IDLProxyObject newInstnace()
      New instnace.
      返回:
      the IDL proxy object
    • put

      public IDLProxyObject put(String field, Object value)
      Put.
      参数:
      field - the field
      value - the value
      返回:
      the IDL proxy object
    • get

      public Object get(String field)
      Gets the.
      参数:
      field - the field
      返回:
      the object
    • encode

      public byte[] encode() throws IOException
      Encode.
      返回:
      the byte[]
      抛出:
      IOException - Signals that an I/O exception has occurred.
    • decode

      public IDLProxyObject decode(byte[] bb) throws IOException
      Decode.
      参数:
      bb - the bb
      返回:
      the IDL proxy object
      抛出:
      IOException - Signals that an I/O exception has occurred.
    • clearFieldCache

      public void clearFieldCache()
      Clear field cache.
    • getTarget

      public Object getTarget()
      Gets the target.
      返回:
      the target