More style changes.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5248 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-07-22 13:02:13 +00:00
parent 09f8a25876
commit c743432676
38 changed files with 155 additions and 193 deletions
@@ -45,11 +45,11 @@ public interface ClientFactory
* Returns the {@link PresentsClient} derived class to use for the session that authenticated
* with the supplied request.
*/
public Class<? extends PresentsClient> getClientClass (AuthRequest areq);
Class<? extends PresentsClient> getClientClass (AuthRequest areq);
/**
* Returns the {@link ClientResolver} derived class to use to resolve a client with the
* specified username.
*/
public Class <? extends ClientResolver> getClientResolverClass (Name username);
Class <? extends ClientResolver> getClientResolverClass (Name username);
}
@@ -68,12 +68,12 @@ public class ClientManager
/**
* Called with the resolved client object.
*/
public void apply (ClientObject clobj);
void apply (ClientObject clobj);
/**
* Called if the client resolution fails.
*/
public void resolutionFailed (Exception e);
void resolutionFailed (Exception e);
}
/**
@@ -84,13 +84,13 @@ public class ClientManager
/**
* Called when a client has authenticated and been resolved and has started their session.
*/
public void clientSessionDidStart (PresentsClient client);
void clientSessionDidStart (PresentsClient client);
/**
* Called when a client has logged off or been forcibly logged off due to inactivity and
* has thus ended their session.
*/
public void clientSessionDidEnd (PresentsClient client);
void clientSessionDidEnd (PresentsClient client);
}
/**
@@ -34,10 +34,10 @@ public interface ClientResolutionListener
/**
* Called when resolution completed successfully.
*/
public void clientResolved (Name username, ClientObject clobj);
void clientResolved (Name username, ClientObject clobj);
/**
* Called when resolution fails.
*/
public void resolutionFailed (Name username, Exception reason);
void resolutionFailed (Name username, Exception reason);
}
@@ -90,14 +90,14 @@ public class PresentsClient
*
* @param rl when this method is finished with its business and the old client object can
* be destroyed, the result listener should be called. */
public void changeReported (ClientObject newObji, ResultListener rl);
void changeReported (ClientObject newObji, ResultListener rl);
/** Called when the user change is completed, the old client object is destroyed and all
* updates are committed. */
public void changeCompleted (ClientObject newObj);
void changeCompleted (ClientObject newObj);
/** Called if some failure occurs during the user change process. */
public void changeFailed (Exception cause);
void changeFailed (Exception cause);
}
/**
@@ -59,7 +59,7 @@ public abstract class RebootManager
* @param msLeft the approximate number of milliseconds left prior to
* the shutdown.
*/
public void shutdownPlanned (int warningsLeft, long msLeft);
void shutdownPlanned (int warningsLeft, long msLeft);
}
/**
@@ -50,7 +50,7 @@ public class ReportManager
* @param reset if true, all accumulating stats should be reset, if false they should be
* allowed to continue to accumulate.
*/
public void appendReport (StringBuilder buffer, long now, long sinceLast, boolean reset);
void appendReport (StringBuilder buffer, long now, long sinceLast, boolean reset);
}
/**
@@ -45,7 +45,7 @@ public class ShutdownManager
/**
* Called when the server is shutting down.
*/
public void shutdown ();
void shutdown ();
}
public static enum Constraint { RUNS_BEFORE, RUNS_AFTER };
@@ -945,7 +945,7 @@ public class ConnectionManager extends LoopingThread
/** Used to handle partial writes in {@link #writeMessage}. */
protected static interface PartialWriteHandler
{
public void handlePartialWrite (Connection conn, ByteBuffer buffer);
void handlePartialWrite (Connection conn, ByteBuffer buffer);
}
/**
@@ -46,8 +46,7 @@ public interface ConnectionObserver
* @param req The auth request provided by the client.
* @param rsp The auth response provided to the client.
*/
public void connectionEstablished (
Connection conn, AuthRequest req, AuthResponse rsp);
void connectionEstablished (Connection conn, AuthRequest req, AuthResponse rsp);
/**
* Called if a connection fails for any reason. If a connection fails,
@@ -58,12 +57,12 @@ public interface ConnectionObserver
* @param conn The connection in that failed.
* @param fault The exception associated with the failure.
*/
public void connectionFailed (Connection conn, IOException fault);
void connectionFailed (Connection conn, IOException fault);
/**
* Called when a connection has been closed in an orderly manner.
*
* @param conn The recently closed connection.
*/
public void connectionClosed (Connection conn);
void connectionClosed (Connection conn);
}
@@ -33,5 +33,5 @@ public interface MessageHandler
* Called when a complete message has been parsed from incoming
* network data.
*/
public void handleMessage (UpstreamMessage message);
void handleMessage (UpstreamMessage message);
}
@@ -41,7 +41,7 @@ public interface NetEventHandler
* @return the number of bytes read from the network as a result of
* handling this event.
*/
public int handleEvent (long when);
int handleEvent (long when);
/**
* Called to ensure that this channel has not been idle for longer
@@ -50,5 +50,5 @@ public interface NetEventHandler
* @return true if the handler is idle (in which case it will be
* closed shortly), false if it is not.
*/
public boolean checkIdle (long now);
boolean checkIdle (long now);
}