sessionmanager: correct ponging of the ping. (#1878)
* sessionmanager: correct ponging of the ping. * sessionmanager: use declared methods over methods.
This commit is contained in:
@@ -58,7 +58,7 @@ public class ClientSessionManager
|
||||
}
|
||||
|
||||
@Schedule(period = 10, unit = ChronoUnit.MINUTES, asynchronous = true)
|
||||
private void ping()
|
||||
public void ping()
|
||||
{
|
||||
if (sessionId == null)
|
||||
{
|
||||
|
||||
@@ -62,7 +62,7 @@ public class Scheduler
|
||||
|
||||
public void registerObject(Object obj)
|
||||
{
|
||||
for (Method method : obj.getClass().getMethods())
|
||||
for (Method method : obj.getClass().getDeclaredMethods())
|
||||
{
|
||||
Schedule schedule = method.getAnnotation(Schedule.class);
|
||||
if (schedule == null)
|
||||
|
||||
Reference in New Issue
Block a user