225226227228229230231
private class SessionFactory implements Connection.SessionFactory { public Session newSession(final Connection conn, final Binary name, final long expiry) { return new ServerSession(conn, new SessionDelegate(), name, expiry, _connectionConfig); }
198199200201202203204
602603604605606607608609610611
{ @Override public Session newSession(Connection conn, Binary name, long expiry) { return new MockSession(conn, new SessionDelegate(), name, expiry, throwException); } }); return connection; }
8990919293949596979899
return list; } public ServerSession getSession(Connection conn, SessionAttach atc) { SessionDelegate serverSessionDelegate = new ServerSessionDelegate(); ServerSession ssn = new ServerSession(conn, serverSessionDelegate, new Binary(atc.getName()), 0); return ssn; }
224225226227228229230