Class TimestampBufferMicros


public class TimestampBufferMicros extends Object
  • Constructor Details

    • TimestampBufferMicros

      public TimestampBufferMicros(TimeZone tz)
    • TimestampBufferMicros

      @Deprecated public TimestampBufferMicros(long localNowMicros, TimeZone tz)
  • Method Details

    • getTimestamp

      public ByteBuffer getTimestamp(long nowMicros)
      Return a thread-local byte buffer containing the give time, formatted in ISO 8601. The buffer's position is set to zero in preparation for writing its contents to another buffer or a channel. Since the buffer is thread-local, the caller can safely assume that it won't change until the same thread accesses this TimestampBuffer again.
    • getTimestamp

      public void getTimestamp(long nowMicros, ByteBuffer dest)
      Format the current time into a ByteBuffer in according to ISO 8601.
      BufferOverflowException - if there is not enough room in the destination buffer.