public long getTimestamp(long now, QueryOptions options) throws InvalidRequestException { if (timestamp == null) return now; ByteBuffer tval = timestamp.bindAndGet(options); if (tval == null) throw new InvalidRequestException("Invalid null value of timestamp"); try { LongType.instance.validate(tval); } catch (MarshalException e) { throw new InvalidRequestException("Invalid timestamp value"); } return LongType.instance.compose(tval); }
public long getTimestamp(long now, QueryOptions options) throws InvalidRequestException { if (timestamp == null) return now; ByteBuffer tval = timestamp.bindAndGet(options); if (tval == null) throw new InvalidRequestException("Invalid null value of timestamp"); if (tval == ByteBufferUtil.UNSET_BYTE_BUFFER) return now; try { LongType.instance.validate(tval); } catch (MarshalException e) { throw new InvalidRequestException("Invalid timestamp value: " + tval); } return LongType.instance.compose(tval); }
public long getTimestamp(long now, QueryOptions options) throws InvalidRequestException { if (timestamp == null) return now; ByteBuffer tval = timestamp.bindAndGet(options); if (tval == null) throw new InvalidRequestException("Invalid null value of timestamp"); if (tval == ByteBufferUtil.UNSET_BYTE_BUFFER) return now; try { LongType.instance.validate(tval); } catch (MarshalException e) { throw new InvalidRequestException("Invalid timestamp value: " + tval); } return LongType.instance.compose(tval); }
public long getTimestamp(long now, QueryOptions options) throws InvalidRequestException { if (timestamp == null) return now; ByteBuffer tval = timestamp.bindAndGet(options); if (tval == null) throw new InvalidRequestException("Invalid null value of timestamp"); if (tval == ByteBufferUtil.UNSET_BYTE_BUFFER) return now; try { LongType.instance.validate(tval); } catch (MarshalException e) { throw new InvalidRequestException("Invalid timestamp value: " + tval); } return LongType.instance.compose(tval); }
public long getTimestamp(long now, QueryOptions options) throws InvalidRequestException { if (timestamp == null) return now; ByteBuffer tval = timestamp.bindAndGet(options); if (tval == null) throw new InvalidRequestException("Invalid null value of timestamp"); if (tval == ByteBufferUtil.UNSET_BYTE_BUFFER) return now; try { LongType.instance.validate(tval); } catch (MarshalException e) { throw new InvalidRequestException("Invalid timestamp value: " + tval); } return LongType.instance.compose(tval); }