Class BasicContext

    • Field Detail

      • typeMap

        protected java.util.Map<java.lang.String,​java.lang.Class<?>> typeMap
      • charset

        protected java.nio.charset.Charset charset
    • Constructor Detail

      • BasicContext

        public BasicContext​(java.net.SocketAddress address,
                            Settings settings)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • shutdown

        protected io.netty.channel.ChannelFuture shutdown()
      • connectionClosed

        protected void connectionClosed()
        Called when serverConnection was closed externally (i.e. without calling shutdown()
      • connectionNotificationReceived

        protected void connectionNotificationReceived​(int processId,
                                                      java.lang.String channelName,
                                                      java.lang.String payload)
        Called when serverConnection received an asynchronous notification
      • getAllocator

        public io.netty.buffer.ByteBufAllocator getAllocator()
      • getRegistry

        public Registry getRegistry()
      • getCustomTypeMap

        public java.util.Map<java.lang.String,​java.lang.Class<?>> getCustomTypeMap()
      • getCharset

        public java.nio.charset.Charset getCharset()
      • getTimeZone

        public java.util.TimeZone getTimeZone()
      • getTimeZoneId

        public java.time.ZoneId getTimeZoneId()
      • getServerInfo

        public ServerInfo getServerInfo()
      • getIntegerFormatter

        public java.text.NumberFormat getIntegerFormatter()
      • getDecimalFormatter

        public java.text.DecimalFormat getDecimalFormatter()
      • getCurrencyFormatter

        public java.text.DecimalFormat getCurrencyFormatter()
      • init

        protected void init​(SharedRegistry.Factory sharedRegistryFactory)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • isUtilQueryPrepared

        public boolean isUtilQueryPrepared​(java.lang.String name)
      • prepareUtilQuery

        public void prepareUtilQuery​(java.lang.String name,
                                     java.lang.String sql,
                                     java.lang.String... parameterTypeNames)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • query

        public void query​(java.lang.String queryTxt,
                          long timeout)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • queryString

        protected java.lang.String queryString​(java.lang.String queryTxt,
                                               long timeout)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • queryBatch

        protected ResultBatch queryBatch​(java.lang.String queryTxt,
                                         long timeout)
                                  throws java.io.IOException
        Queries for a single (the first) result batch. The batch must be released.
        Throws:
        java.io.IOException
      • queryBatchPrepared

        public ResultBatch queryBatchPrepared​(java.lang.String queryTxt,
                                              java.lang.Object[] paramValues,
                                              long timeout)
                                       throws java.io.IOException
        Queries a single result batch (the first) via a parameterized query. The batch must be released.
        Throws:
        java.io.IOException
      • queryBatchPrepared

        protected ResultBatch queryBatchPrepared​(java.lang.String queryTxt,
                                                 FieldFormatRef[] paramFormats,
                                                 io.netty.buffer.ByteBuf[] paramBuffers,
                                                 long timeout)
                                          throws java.io.IOException
        Queries a single result batch (the first) via a parameterized query. The batch must be released.
        Throws:
        java.io.IOException