|Constructor and Description|
Creates a new ball with the specified TTL (Time To Live) value.
public TennisBall(int ttl)
ttl- The time to live
public int getTTL()
public TennisBall stroke()
TennisPlayer's stroke. The returned ball has decreased TTL value and switched PING/PONG state.
Copyright © 2004–2016 Apache MINA Project. All rights reserved.