public static void startQueryHaveLockedMessages(AsyncQueryHandler handler,long threadId,int token){
  ArrayList<Long> threadIds=null;
  if (threadId != -1) {
    threadIds=new ArrayList<Long>();
    threadIds.add(threadId);
  }
  startQueryHaveLockedMessages(handler,threadIds,token);
}

public static void startQueryHaveLockedMessages ( AsyncQueryHandler handler , long threadId , int token ) { ArrayList < Long > threadIds = null ; if ( threadId != - 1 ) { threadIds = new ArrayList < Long > ( ) ; threadIds . add ( threadId ) ; } startQueryHaveLockedMessages ( handler , threadIds , token ) ; }
check for locked messages in all threads or a specified thread .
