org.jdiameter.server.impl.io.tls
Class NetworkGuard

java.lang.Object
  extended by org.jdiameter.server.impl.io.tls.NetworkGuard
All Implemented Interfaces:
java.lang.Runnable, INetworkGuard

public class NetworkGuard
extends java.lang.Object
implements INetworkGuard, java.lang.Runnable

TLS implementation of INetworkGuard.

Author:
Bartosz Baranowski , Alexandre Mendonca

Constructor Summary
NetworkGuard(java.net.InetAddress inetAddress, int port, IConcurrentFactory concurrentFactory, IMessageParser parser, IMetaData data)
           
 
Method Summary
 void addListener(INetworkConnectionListener listener)
          Append new listener
 void destroy()
          Release all attached resources (socket and etc)
 void remListener(INetworkConnectionListener listener)
          Remove listener
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkGuard

public NetworkGuard(java.net.InetAddress inetAddress,
                    int port,
                    IConcurrentFactory concurrentFactory,
                    IMessageParser parser,
                    IMetaData data)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

addListener

public void addListener(INetworkConnectionListener listener)
Description copied from interface: INetworkGuard
Append new listener

Specified by:
addListener in interface INetworkGuard
Parameters:
listener - listener instance

remListener

public void remListener(INetworkConnectionListener listener)
Description copied from interface: INetworkGuard
Remove listener

Specified by:
remListener in interface INetworkGuard
Parameters:
listener - listener instance

destroy

public void destroy()
Description copied from interface: INetworkGuard
Release all attached resources (socket and etc)

Specified by:
destroy in interface INetworkGuard


Copyright © 2014. All Rights Reserved.