public RecordLocation write()

in activeio-core/src/main/java/org/apache/activeio/journal/howl/HowlJournal.java [66:78]


	public RecordLocation write(Packet packet, boolean sync) throws IOException {
		try {
			return new LongRecordLocation(logger.put(packet.sliceAsBytes(), sync));
		} catch (InterruptedException e) {
			throw (InterruptedIOException) new InterruptedIOException()
					.initCause(e);
		} catch (IOException e) {
			throw e;
		} catch (Exception e) {
			throw (IOException) new IOException("Journal write failed: " + e)
					.initCause(e);
		}
	}