package org.jboss.mq.il.uil2.msgs;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class EnableConnectionMsg extends BaseMsg
{
private boolean enabled;
public EnableConnectionMsg()
{
this(false);
}
public EnableConnectionMsg(boolean enabled)
{
super(MsgTypes.m_setEnabled);
this.enabled = enabled;
}
public boolean isEnabled()
{
return enabled;
}
public void write(ObjectOutputStream out) throws IOException
{
super.write(out);
out.writeBoolean(enabled);
}
public void read(ObjectInputStream in) throws IOException, ClassNotFoundException
{
super.read(in);
enabled = in.readBoolean();
}
}