Package jmri

Annotation Type InvokeOnLayoutThread


  • @Retention(CLASS)
    @Target({METHOD,CONSTRUCTOR})
    @Documented
    @Inherited
    public @interface InvokeOnLayoutThread
    Annotation denoting that a method or constructor must be called on the layout thread.

    A class with one or more methods that must be called on a particular thread is by definition NotThreadSafe, so please include the @NotThreadSafe annotation on the class.

    For more information on JMRI threading conventions, see the JMRI Threading docoumentation page.