| | |
| | | return value; |
| | | } |
| | | |
| | | @Override |
| | | public void close() |
| | | { |
| | | logger.trace("Storage@%s.ReadableStorage@%s.close()", storageId(), id()); |
| | | } |
| | | |
| | | private int id() |
| | | { |
| | | return System.identityHashCode(this); |
| | |
| | | return isUpdated; |
| | | } |
| | | |
| | | @Override |
| | | public void close() |
| | | { |
| | | logger.trace("Storage@%s.WriteableStorage@%s.close()", storageId(), id()); |
| | | } |
| | | |
| | | private int id() |
| | | { |
| | | return System.identityHashCode(this); |
| | |
| | | storage.write(op); |
| | | } |
| | | |
| | | @Override |
| | | public WriteableStorage getWriteableStorage() |
| | | { |
| | | final WriteableStorage writeableStorage = storage.getWriteableStorage(); |
| | | if (logger.isTraceEnabled()) |
| | | { |
| | | return new TracedWriteableStorage(writeableStorage); |
| | | } |
| | | return writeableStorage; |
| | | } |
| | | |
| | | private String hex(final ByteSequence bytes) |
| | | { |
| | | return bytes != null ? bytes.toByteString().toHexString() : null; |