public class TennisBall extends Object
Constructor and Description |
---|
TennisBall(int ttl)
Creates a new ball with the specified TTL (Time To Live) value.
|
public TennisBall(int ttl)
ttl
- The time to livepublic 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.