PageRenderTime 54ms CodeModel.GetById 33ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/java/com/rabbitmq/messagepatterns/unicast/impl/ChannelAware.java

http://github.com/rabbitmq/rabbitmq-java-messagepatterns
Java | 16 lines | 10 code | 6 blank | 0 comment | 0 complexity | 44de0d464e42ec63777e6b75bfaf2d87 MD5 | raw file
 1package com.rabbitmq.messagepatterns.unicast.impl;
 2
 3import com.rabbitmq.client.Channel;
 4
 5import java.io.Closeable;
 6import java.io.IOException;
 7
 8public abstract class ChannelAware implements Closeable {
 9
10    protected Channel channel;
11
12    public void close() throws IOException {
13        channel.close();
14    }
15
16}