public UnboundSmppSession(String channelName, Channel channel, DefaultSmppServer server) { this.channelName = channelName; this.channel = channel; this.server = server; // schedule the timer to close the channel after X milliseconds this.bindTimeoutTask = new BindTimeoutTask(); this.server.getBindTimer().schedule(bindTimeoutTask, this.server.getConfiguration().getBindTimeout()); }
this.bindTimeoutTask.cancel();
this.bindTimeoutTask.cancel();
this.bindTimeoutTask.cancel();
this.bindTimeoutTask.cancel();
@Override public void run() { logger.warn("Channel not bound within [{}] ms, closing connection [{}]", server.getConfiguration().getBindTimeout(), channelName); channel.close(); this.cancel(); server.getCounters().incrementBindTimeoutsAndGet(); } }
public UnboundSmppSession(String channelName, Channel channel, DefaultSmppServer server) { this.channelName = channelName; this.channel = channel; this.server = server; // schedule the timer to close the channel after X milliseconds this.bindTimeoutTask = new BindTimeoutTask(); this.server.getBindTimer().schedule(bindTimeoutTask, this.server.getConfiguration().getBindTimeout()); }
public UnboundSmppSession(String channelName, Channel channel, DefaultSmppServer server) { this.channelName = channelName; this.channel = channel; this.server = server; // schedule the timer to close the channel after X milliseconds this.bindTimeoutTask = new BindTimeoutTask(); this.server.getBindTimer().schedule(bindTimeoutTask, this.server.getConfiguration().getBindTimeout()); }
@Override public void run() { logger.warn("Channel not bound within [{}] ms, closing connection [{}]", server.getConfiguration().getBindTimeout(), channelName); channel.close(); this.cancel(); server.getCounters().incrementBindTimeoutsAndGet(); } }
public void closeChannelAndCancelTimer() { // if the channel is being closed, we should always make sure the timer // bind task is always cancelled as well this.bindTimeoutTask.cancel(); // close the channel this.channel.close(); }
public void closeChannelAndCancelTimer() { // if the channel is being closed, we should always make sure the timer // bind task is always cancelled as well this.bindTimeoutTask.cancel(); // close the channel this.channel.close(); }
@Override public void run() { logger.warn("Channel not bound within [{}] ms, closing connection [{}]", server.getConfiguration().getBindTimeout(), channelName); channel.close(); this.cancel(); server.getCounters().incrementBindTimeoutsAndGet(); } }
public void closeChannelAndCancelTimer() { // if the channel is being closed, we should always make sure the timer // bind task is always cancelled as well this.bindTimeoutTask.cancel(); // close the channel this.channel.close(); }
public void closeChannelAndCancelTimer() { // if the channel is being closed, we should always make sure the timer // bind task is always cancelled as well this.bindTimeoutTask.cancel(); // close the channel this.channel.close(); }
public UnboundSmppSession(String channelName, Channel channel, DefaultSmppServer server) { this.channelName = channelName; this.channel = channel; this.server = server; // schedule the timer to close the channel after X milliseconds this.bindTimeoutTask = new BindTimeoutTask(); this.server.getBindTimer().schedule(bindTimeoutTask, this.server.getConfiguration().getBindTimeout()); }
@Override public void run() { logger.warn("Channel not bound within [{}] ms, closing connection [{}]", server.getConfiguration().getBindTimeout(), channelName); channel.close(); this.cancel(); server.getCounters().incrementBindTimeoutsAndGet(); } }